{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "637e5a5f",
   "metadata": {},
   "source": [
    "---\n",
    "* 2023-11-22\n",
    "* 课程：Python语言\n",
    "* week09(12周)\n",
    "---"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "44be0986",
   "metadata": {},
   "source": [
    "# 1. 集合\n",
    "\n",
    "> 1. 集合的创建\n",
    "> 2. 集合的方法（运算法则）"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "13631182",
   "metadata": {},
   "source": [
    "## 1.1 集合的创建"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "074d6e31",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'张力', '李鹏', '小明', '小红'}\n",
      "<class 'set'>\n"
     ]
    }
   ],
   "source": [
    "街舞社 = {\"李鹏\",\"小明\",\"小红\",\"张力\"}\n",
    "print(街舞社)\n",
    "print(type(街舞社))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "5859d07a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'Marry', 'John', 'Jack', '李鹏', 'Jessa'}\n",
      "<class 'set'>\n"
     ]
    }
   ],
   "source": [
    "合唱团 = {\"Marry\",\"Jack\",\"John\",\"Jessa\",\"李鹏\"}\n",
    "print(合唱团)\n",
    "print(type(合唱团))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6b868b52",
   "metadata": {},
   "source": [
    "## 1.2 集合的一般方法\n",
    "\n",
    "> 1. 交集\n",
    "> 2. 并集\n",
    "> 3. 差集"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "131d9eb3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'李鹏'}"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 交集的运算\n",
    "街舞社.intersection(合唱团)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "6bd113fb",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'李鹏'}"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "街舞社 & 合唱团"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "f3d95a5f",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Jack', 'Jessa', 'John', 'Marry', '小明', '小红', '张力', '李鹏'}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 并集的运算\n",
    "街舞社.union(合唱团)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "c601b4eb",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Jack', 'Jessa', 'John', 'Marry', '小明', '小红', '张力', '李鹏'}"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "街舞社 | 合唱团"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "9d9c25ef",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'小明', '小红', '张力'}"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 差集的运算\n",
    "街舞社.difference(合唱团)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "9d4cdabe",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Jack', 'Jessa', 'John', 'Marry'}"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "合唱团.difference(街舞社)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "9aafd8c2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'小明', '小红', '张力'}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "街舞社 - 合唱团"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "id": "4bf51087",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'Jack', 'Jessa', 'John', 'Marry'}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "合唱团 - 街舞社"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f4082589",
   "metadata": {},
   "source": [
    "# 2.字典\n",
    "\n",
    "> 1. 字典的概念和特性\n",
    "* Another useful data type built into Python is the dictionary (see Mapping Types — dict). Dictionaries are sometimes found in other languages as “associative memories” or “associative arrays”. Unlike sequences, which are indexed by a range of numbers, dictionaries are indexed by keys（键）, which can be any immutable type; strings and numbers can always be keys. Tuples can be used as keys if they contain only strings, numbers, or tuples; if a tuple contains any mutable object either directly or indirectly, it cannot be used as a key. You can’t use lists as keys, since lists can be modified in place using index assignments, slice assignments, or methods like append() and extend().\n",
    "* It is best to think of a dictionary as a set of key: value pairs（大脑P96，字典存储键/值对）, with the requirement that the keys are unique (within one dictionary). A pair of braces creates an empty dictionary: {}. Placing a comma-separated list of key:value pairs within the braces adds initial key:value pairs to the dictionary; this is also the way dictionaries are written on output.\n",
    "* The main operations on a dictionary are storing a value with some key and extracting the value given the key. It is also possible to delete a key:value pair with del. If you store using a key that is already in use, the old value associated with that key is forgotten. It is an error to extract a value using a non-existent key.\n",
    "* Performing list(d) on a dictionary returns a list of all the keys used in the dictionary, in insertion order (if you want it sorted, just use sorted(d) instead). To check whether a single key is in the dictionary, use the in keyword.\n",
    "\n",
    ">> 1. 特征：\n",
    ">>> 1. 无序性\n",
    ">>> 2. key唯一性\n",
    ">>> 3. key不可变性\n",
    "\n",
    "\n",
    "> 2. 字典的创建\n",
    "> 3. 字典的一般方法"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "45ff14dd",
   "metadata": {},
   "source": [
    "## 2. 字典的创建"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "3bb4adea",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法一：按照字典的格式创建字典：key:value\n",
    "info = {\n",
    "    \"stu2301\":\"ZiQi\",\n",
    "    \"stu2302\":\"XiaoFeng\",\n",
    "    \"stu2303\":\"LiuYu\"\n",
    "}\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "c33f9570",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法二：按照字典的内置方法创建字典：dict(),通过变量赋值产生对应的key:value\n",
    "info = dict(\n",
    "    stu2301 = \"ZiQi\",\n",
    "    stu2302 = \"XiaoFeng\",\n",
    "    stu2303 = \"LiuYu\"\n",
    ")\n",
    "\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "a525706f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "# 方法三：新建一个空字典，通过adds 方法创建字典\n",
    "info = {}\n",
    "\n",
    "info['stu2301'] = \"ZiQi\"\n",
    "info['stu2302'] = \"XiaoFeng\"\n",
    "info['stu2303'] = \"LiuYu\"\n",
    "\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "76529a45",
   "metadata": {},
   "source": [
    "## 3. 字典的一般方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "df3a8b2a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "info = {}\n",
    "\n",
    "info['stu2301'] = \"ZiQi\"\n",
    "info['stu2302'] = \"XiaoFeng\"\n",
    "info['stu2303'] = \"LiuYu\"\n",
    "\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "633eaa48",
   "metadata": {},
   "source": [
    "* 1. 字典的查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "id": "2b9d4333",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"stu2301\" in info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "id": "4cb92c04",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "False"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"stu2322\" in info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "id": "422f4b95",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'ZiQi'"
      ]
     },
     "execution_count": 23,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.get(\"stu2301\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "id": "010c4a7b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "None\n"
     ]
    }
   ],
   "source": [
    "print(info.get(\"stu2322\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6f2e2806",
   "metadata": {},
   "source": [
    "* 2. 字典的循环loop,items()\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "id": "90e2898a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "stu2301\n",
      "stu2302\n",
      "stu2303\n"
     ]
    }
   ],
   "source": [
    "for i in info:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "id": "bac2ae19",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_items([('stu2301', 'ZiQi'), ('stu2302', 'XiaoFeng'), ('stu2303', 'LiuYu')])"
      ]
     },
     "execution_count": 27,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.items()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "id": "2fa553fe",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "stu2301 ZiQi\n",
      "stu2302 XiaoFeng\n",
      "stu2303 LiuYu\n"
     ]
    }
   ],
   "source": [
    "for k,v in info.items():\n",
    "    print(k,v)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "45d26c1f",
   "metadata": {},
   "source": [
    "* 3. 字典的keys 和 values方法"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "id": "a2570da1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['stu2301', 'stu2302', 'stu2303'])"
      ]
     },
     "execution_count": 29,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 检查所有的关键字key\n",
    "info.keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 30,
   "id": "fcd3efe0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_values(['ZiQi', 'XiaoFeng', 'LiuYu'])"
      ]
     },
     "execution_count": 30,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 检查所有的结果value\n",
    "info.values()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f27240d7",
   "metadata": {},
   "source": [
    "* 4. 字典的元素删除\n",
    "> 1. pop 指定元素的key进行删除\n",
    "> 2. popitem 随机删除其中的一个元素"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 31,
   "id": "ad954652",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'XiaoFeng'"
      ]
     },
     "execution_count": 31,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.pop('stu2302')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 32,
   "id": "89b6c858",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'stu2301': 'ZiQi', 'stu2303': 'LiuYu'}"
      ]
     },
     "execution_count": 32,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 34,
   "id": "8a4f9b14",
   "metadata": {},
   "outputs": [],
   "source": [
    "if 'stu2322' in info:\n",
    "    info.pop('stu2322')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "id": "0daebfaf",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'stu2301': 'ZiQi', 'stu2303': 'LiuYu'}"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "id": "2e269963",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "info = {}\n",
    "\n",
    "info['stu2301'] = \"ZiQi\"\n",
    "info['stu2302'] = \"XiaoFeng\"\n",
    "info['stu2303'] = \"LiuYu\"\n",
    "\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 37,
   "id": "2c739f70",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('stu2303', 'LiuYu')"
      ]
     },
     "execution_count": 37,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.popitem()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7f1fedbf",
   "metadata": {},
   "source": [
    "* 5. 字典的高级方法\n",
    "> 1. fromkeys() 初始化\n",
    "> 2. setdefault()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "id": "b88d7f76",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function fromkeys:\n",
      "\n",
      "fromkeys(iterable, value=None, /) method of builtins.type instance\n",
      "    Create a new dictionary with keys from iterable and values set to value.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(info.fromkeys)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "id": "1d8e5bb9",
   "metadata": {},
   "outputs": [],
   "source": [
    "info = {}\n",
    "\n",
    "name_list = ['stu2301','stu2302','stu2303','stu2304']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "8b67b1e4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'stu2301': 100, 'stu2302': 100, 'stu2303': 100, 'stu2304': 100}"
      ]
     },
     "execution_count": 42,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.fromkeys(name_list,100)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "d12540fb",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Help on built-in function setdefault:\n",
      "\n",
      "setdefault(key, default=None, /) method of builtins.dict instance\n",
      "    Insert key with a value of default if key is not in the dictionary.\n",
      "    \n",
      "    Return the value for key if key is in the dictionary, else default.\n",
      "\n"
     ]
    }
   ],
   "source": [
    "help(info.setdefault)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "id": "8cb1705b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu'}\n",
      "<class 'dict'>\n"
     ]
    }
   ],
   "source": [
    "info = {}\n",
    "\n",
    "info['stu2301'] = \"ZiQi\"\n",
    "info['stu2302'] = \"XiaoFeng\"\n",
    "info['stu2303'] = \"LiuYu\"\n",
    "\n",
    "print(info)\n",
    "print(type(info))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "37d205cc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'小红'"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.setdefault(\"stu2322\",\"小红\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "id": "b18ede33",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu', 'stu2322': '小红'}"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "id": "1b1eb8c3",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'XiaoFeng'"
      ]
     },
     "execution_count": 56,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info.setdefault(\"stu2302\",\"小明\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "6832d110",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'stu2301': 'ZiQi', 'stu2302': 'XiaoFeng', 'stu2303': 'LiuYu', 'stu2322': '小红'}"
      ]
     },
     "execution_count": 57,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "info"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "365a83e6",
   "metadata": {},
   "source": [
    "# 3. 实践"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "785d9f8d",
   "metadata": {},
   "outputs": [],
   "source": [
    "geo_nfu = {\"status\":\"1\",\"regeocode\":{\"roads\":[{\"id\":\"020F49F0050461206\",\"location\":\"113.678,23.6284\",\"direction\":\"北\",\"name\":\"博学路\",\"distance\":\"7.63232\"},{\"id\":\"020F49F0050462229\",\"location\":\"113.679,23.6245\",\"direction\":\"北\",\"name\":\"老虎形街\",\"distance\":\"445.159\"},{\"id\":\"020F49F005046601453\",\"location\":\"113.677,23.6347\",\"direction\":\"南\",\"name\":\"中山路\",\"distance\":\"712.706\"}],\"roadinters\":[{\"second_name\":\"中山路\",\"first_id\":\"020F49F0050461206\",\"second_id\":\"020F49F005046601453\",\"location\":\"113.676745,23.634493\",\"distance\":\"691.177\",\"first_name\":\"博学路\",\"direction\":\"南\"}],\"formatted_address\":\"广东省广州市从化区温泉镇博学路广州南方学院\",\"addressComponent\":{\"city\":\"广州市\",\"province\":\"广东省\",\"adcode\":\"440117\",\"district\":\"从化区\",\"towncode\":\"440117100000\",\"streetNumber\":{\"number\":\"24号\",\"location\":\"113.677267,23.629149\",\"direction\":\"西北\",\"distance\":\"129.943\",\"street\":\"博学路\"},\"country\":\"中国\",\"township\":\"温泉镇\",\"businessAreas\":[[]],\"building\":{\"name\":[],\"type\":[]},\"neighborhood\":{\"name\":[],\"type\":[]},\"citycode\":\"020\"},\"aois\":[{\"area\":\"530435.909488\",\"type\":\"141201\",\"id\":\"B00140MR9A\",\"location\":\"113.679240,23.632576\",\"adcode\":\"440117\",\"name\":\"广州南方学院\",\"distance\":\"0\"}],\"pois\":[{\"id\":\"B00140MR9A\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.450402\",\"name\":\"广州南方学院\",\"location\":\"113.679240,23.632576\",\"distance\":\"470.34\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFK8J7XY\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.233244\",\"name\":\"广州南方学院(东南门)\",\"location\":\"113.678689,23.628304\",\"distance\":\"44.279\",\"tel\":[],\"type\":\"通行设施;临街院门;临街院门\"},{\"id\":\"B0FFHRJDM9\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"中大南方学院南门1号\",\"poiweight\":\"0.256152\",\"name\":\"中南公寓\",\"location\":\"113.680340,23.627566\",\"distance\":\"231.223\",\"tel\":\"13711245345\",\"type\":\"商务住宅;住宅区;住宅小区\"},{\"id\":\"B0H0M9NO43\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.292147\",\"name\":\"广州南方学院南方湖观景台\",\"location\":\"113.679464,23.630429\",\"distance\":\"252.022\",\"tel\":[],\"type\":\"风景名胜;风景名胜;观景点\"},{\"id\":\"B0FFHC4XU0\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道886号\",\"poiweight\":\"0.191595\",\"name\":\"广州南方学院学术交流中心\",\"location\":\"113.680066,23.630242\",\"distance\":\"270.76\",\"tel\":[],\"type\":\"科教文化服务;会展中心;会展中心\"},{\"id\":\"B0FFKP838K\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路25号\",\"poiweight\":\"0.191742\",\"name\":\"教学楼3号(外国语学院)\",\"location\":\"113.677247,23.630947\",\"distance\":\"298.093\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0FFG4TAF2\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇乌土村松浪队5号(近博学路)\",\"poiweight\":\"0.237309\",\"name\":\"广州南方公寓\",\"location\":\"113.678983,23.627778\",\"distance\":\"102.617\",\"tel\":\"13622768437\",\"type\":\"住宿服务;旅馆招待所;旅馆招待所\"},{\"id\":\"B0FFKP7GY5\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.218221\",\"name\":\"广州南方学院3号实验楼\",\"location\":\"113.678650,23.630612\",\"distance\":\"244.566\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0GKYRKNUA\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"温泉镇平岗村乌土平岗街25号(中南公寓旁)\",\"poiweight\":\"0.209893\",\"name\":\"乐妍茶(中大店)\",\"location\":\"113.680097,23.627643\",\"distance\":\"205.173\",\"tel\":\"18028862548\",\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0H33OZ7BU\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"博学路广州南方学院\",\"poiweight\":\"0.191148\",\"name\":\"广州南方学院学术报告厅\",\"location\":\"113.678698,23.631219\",\"distance\":\"312.056\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0JRKNVEFY\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号\",\"poiweight\":\"0.209894\",\"name\":\"喜茶(广州南方学院店)\",\"location\":\"113.679905,23.630533\",\"distance\":\"285.72\",\"tel\":[],\"type\":\"餐饮服务;冷饮店;冷饮店\"},{\"id\":\"B0HGD588HJ\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院4号教学楼\",\"location\":\"113.677461,23.630578\",\"distance\":\"252.08\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0H1XKYTYG\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.198742\",\"name\":\"广州南方学院西区篮球场\",\"location\":\"113.677741,23.629552\",\"distance\":\"135.401\",\"tel\":[],\"type\":\"体育休闲服务;运动场馆;篮球场馆\"},{\"id\":\"B0HGDU76L2\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院2号实验楼\",\"location\":\"113.678327,23.630969\",\"distance\":\"281.377\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0IB2GMPW4\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005\",\"poiweight\":\"0.218331\",\"name\":\"古茗(南方学院店)\",\"location\":\"113.680105,23.630681\",\"distance\":\"311.024\",\"tel\":\"13717659301;18027267535\",\"type\":\"餐饮服务;休闲餐饮场所;休闲餐饮场所\"},{\"id\":\"B0I12780ZU\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"内部地面停车场\",\"poiweight\":\"0.203102\",\"name\":\"内部地面停车场(出入口)\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;停车场出入口\"},{\"id\":\"B0I1276BCM\",\"direction\":\"东南\",\"businessarea\":[],\"address\":[],\"poiweight\":\"0.257239\",\"name\":\"内部地面停车场\",\"location\":\"113.679445,23.627444\",\"distance\":\"162.262\",\"tel\":[],\"type\":\"交通设施服务;停车场;专用停车场\"},{\"id\":\"B0H25SMRKP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.263595\",\"name\":\"广州南方学院大礼堂\",\"location\":\"113.680076,23.631502\",\"distance\":\"386.65\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"BV11417822\",\"direction\":\"东南\",\"businessarea\":[],\"address\":\"从15路从20路\",\"poiweight\":\"0.400088\",\"name\":\"南方学院后门总站(公交站)\",\"location\":\"113.679280,23.627201\",\"distance\":\"171.243\",\"tel\":[],\"type\":\"交通设施服务;公交车站;公交车站相关\"},{\"id\":\"B0FFK0MZII\",\"direction\":\"东\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院后门润泰超市一楼\",\"poiweight\":\"0.10175\",\"name\":\"街电(尚千谷中大南方店)\",\"location\":\"113.680254,23.627804\",\"distance\":\"213.132\",\"tel\":[],\"type\":\"生活服务;共享设备;充电宝\"},{\"id\":\"B0HRV1D5FP\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院\",\"poiweight\":\"0.191158\",\"name\":\"广州南方学院博物馆\",\"location\":\"113.679624,23.631631\",\"distance\":\"380.463\",\"tel\":[],\"type\":\"科教文化服务;博物馆;博物馆\"},{\"id\":\"B0FFKMSV6B\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.232574\",\"name\":\"广州南方学院西学楼2号楼\",\"location\":\"113.675891,23.630025\",\"distance\":\"300.564\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFKP81F0\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"博学路与中山路交叉口南340米\",\"poiweight\":\"0.191742\",\"name\":\"教学楼1号(文学与传媒学院)\",\"location\":\"113.676866,23.631736\",\"distance\":\"393.93\",\"tel\":[],\"type\":\"科教文化服务;科教文化场所;科教文化场所\"},{\"id\":\"B0HGDU99RM\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院内\",\"poiweight\":\"0.257947\",\"name\":\"广州南方学院图书馆\",\"location\":\"113.679303,23.632322\",\"distance\":\"444.196\",\"tel\":\"020-61787368;020-61787371\",\"type\":\"科教文化服务;图书馆;图书馆\"},{\"id\":\"B0HGDU92JD\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院1号教学楼\",\"location\":\"113.676968,23.631720\",\"distance\":\"388.57\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0FFH6K3U9\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇温泉大道882号广州南方学院H7栋1-5层\",\"poiweight\":\"0.254885\",\"name\":\"广州中大南方招待所\",\"location\":\"113.676330,23.631332\",\"distance\":\"378.102\",\"tel\":\"020-61787222\",\"type\":\"住宿服务;住宿服务相关;住宿服务相关\"},{\"id\":\"B0H1YMW8PH\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉镇中山大学南方学院博学路6号西区食堂首层\",\"poiweight\":\"0.214311\",\"name\":\"肯德基(从化南方学院店)\",\"location\":\"113.676031,23.631594\",\"distance\":\"419.018\",\"tel\":\"4009200715\",\"type\":\"餐饮服务;快餐厅;快餐厅\"},{\"id\":\"B0HGD592BJ\",\"direction\":\"东北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.221662\",\"name\":\"广州南方学院综合楼\",\"location\":\"113.680109,23.631605\",\"distance\":\"398.334\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"},{\"id\":\"B0HGD58NF8\",\"direction\":\"北\",\"businessarea\":[],\"address\":\"温泉大道882号广州南方学院新综合楼2层\",\"poiweight\":\"0.191229\",\"name\":\"广州南方学院达人书院\",\"location\":\"113.679041,23.632392\",\"distance\":\"446.366\",\"tel\":[],\"type\":\"科教文化服务;学校;高等院校\"},{\"id\":\"B0JBGSFI8C\",\"direction\":\"西北\",\"businessarea\":[],\"address\":\"温泉大道882号\",\"poiweight\":\"0.115716\",\"name\":\"广州南方学院西学楼1号楼\",\"location\":\"113.675570,23.630596\",\"distance\":\"365.742\",\"tel\":[],\"type\":\"地名地址信息;门牌信息;楼栋号\"}]},\"info\":\"OK\",\"infocode\":\"10000\"}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "id": "47b0a255",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0050461206',\n",
       "    'location': '113.678,23.6284',\n",
       "    'direction': '北',\n",
       "    'name': '博学路',\n",
       "    'distance': '7.63232'},\n",
       "   {'id': '020F49F0050462229',\n",
       "    'location': '113.679,23.6245',\n",
       "    'direction': '北',\n",
       "    'name': '老虎形街',\n",
       "    'distance': '445.159'},\n",
       "   {'id': '020F49F005046601453',\n",
       "    'location': '113.677,23.6347',\n",
       "    'direction': '南',\n",
       "    'name': '中山路',\n",
       "    'distance': '712.706'}],\n",
       "  'roadinters': [{'second_name': '中山路',\n",
       "    'first_id': '020F49F0050461206',\n",
       "    'second_id': '020F49F005046601453',\n",
       "    'location': '113.676745,23.634493',\n",
       "    'distance': '691.177',\n",
       "    'first_name': '博学路',\n",
       "    'direction': '南'}],\n",
       "  'formatted_address': '广东省广州市从化区温泉镇博学路广州南方学院',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117100000',\n",
       "   'streetNumber': {'number': '24号',\n",
       "    'location': '113.677267,23.629149',\n",
       "    'direction': '西北',\n",
       "    'distance': '129.943',\n",
       "    'street': '博学路'},\n",
       "   'country': '中国',\n",
       "   'township': '温泉镇',\n",
       "   'businessAreas': [[]],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [{'area': '530435.909488',\n",
       "    'type': '141201',\n",
       "    'id': 'B00140MR9A',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'adcode': '440117',\n",
       "    'name': '广州南方学院',\n",
       "    'distance': '0'}],\n",
       "  'pois': [{'id': 'B00140MR9A',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.450402',\n",
       "    'name': '广州南方学院',\n",
       "    'location': '113.679240,23.632576',\n",
       "    'distance': '470.34',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFK8J7XY',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.233244',\n",
       "    'name': '广州南方学院(东南门)',\n",
       "    'location': '113.678689,23.628304',\n",
       "    'distance': '44.279',\n",
       "    'tel': [],\n",
       "    'type': '通行设施;临街院门;临街院门'},\n",
       "   {'id': 'B0FFHRJDM9',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '中大南方学院南门1号',\n",
       "    'poiweight': '0.256152',\n",
       "    'name': '中南公寓',\n",
       "    'location': '113.680340,23.627566',\n",
       "    'distance': '231.223',\n",
       "    'tel': '13711245345',\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0H0M9NO43',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.292147',\n",
       "    'name': '广州南方学院南方湖观景台',\n",
       "    'location': '113.679464,23.630429',\n",
       "    'distance': '252.022',\n",
       "    'tel': [],\n",
       "    'type': '风景名胜;风景名胜;观景点'},\n",
       "   {'id': 'B0FFHC4XU0',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道886号',\n",
       "    'poiweight': '0.191595',\n",
       "    'name': '广州南方学院学术交流中心',\n",
       "    'location': '113.680066,23.630242',\n",
       "    'distance': '270.76',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;会展中心;会展中心'},\n",
       "   {'id': 'B0FFKP838K',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路25号',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼3号(外国语学院)',\n",
       "    'location': '113.677247,23.630947',\n",
       "    'distance': '298.093',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0FFG4TAF2',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇乌土村松浪队5号(近博学路)',\n",
       "    'poiweight': '0.237309',\n",
       "    'name': '广州南方公寓',\n",
       "    'location': '113.678983,23.627778',\n",
       "    'distance': '102.617',\n",
       "    'tel': '13622768437',\n",
       "    'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "   {'id': 'B0FFKP7GY5',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.218221',\n",
       "    'name': '广州南方学院3号实验楼',\n",
       "    'location': '113.678650,23.630612',\n",
       "    'distance': '244.566',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0GKYRKNUA',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇平岗村乌土平岗街25号(中南公寓旁)',\n",
       "    'poiweight': '0.209893',\n",
       "    'name': '乐妍茶(中大店)',\n",
       "    'location': '113.680097,23.627643',\n",
       "    'distance': '205.173',\n",
       "    'tel': '18028862548',\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0H33OZ7BU',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路广州南方学院',\n",
       "    'poiweight': '0.191148',\n",
       "    'name': '广州南方学院学术报告厅',\n",
       "    'location': '113.678698,23.631219',\n",
       "    'distance': '312.056',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0JRKNVEFY',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号广州南方学院商业中心1层1F-001-1号',\n",
       "    'poiweight': '0.209894',\n",
       "    'name': '喜茶(广州南方学院店)',\n",
       "    'location': '113.679905,23.630533',\n",
       "    'distance': '285.72',\n",
       "    'tel': [],\n",
       "    'type': '餐饮服务;冷饮店;冷饮店'},\n",
       "   {'id': 'B0HGD588HJ',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院4号教学楼',\n",
       "    'location': '113.677461,23.630578',\n",
       "    'distance': '252.08',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0H1XKYTYG',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.198742',\n",
       "    'name': '广州南方学院西区篮球场',\n",
       "    'location': '113.677741,23.629552',\n",
       "    'distance': '135.401',\n",
       "    'tel': [],\n",
       "    'type': '体育休闲服务;运动场馆;篮球场馆'},\n",
       "   {'id': 'B0HGDU76L2',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院2号实验楼',\n",
       "    'location': '113.678327,23.630969',\n",
       "    'distance': '281.377',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0IB2GMPW4',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇笃行路20、22、24号中山大学南方学院商业中心一楼1F-005',\n",
       "    'poiweight': '0.218331',\n",
       "    'name': '古茗(南方学院店)',\n",
       "    'location': '113.680105,23.630681',\n",
       "    'distance': '311.024',\n",
       "    'tel': '13717659301;18027267535',\n",
       "    'type': '餐饮服务;休闲餐饮场所;休闲餐饮场所'},\n",
       "   {'id': 'B0I12780ZU',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '内部地面停车场',\n",
       "    'poiweight': '0.203102',\n",
       "    'name': '内部地面停车场(出入口)',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;停车场出入口'},\n",
       "   {'id': 'B0I1276BCM',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': [],\n",
       "    'poiweight': '0.257239',\n",
       "    'name': '内部地面停车场',\n",
       "    'location': '113.679445,23.627444',\n",
       "    'distance': '162.262',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;停车场;专用停车场'},\n",
       "   {'id': 'B0H25SMRKP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.263595',\n",
       "    'name': '广州南方学院大礼堂',\n",
       "    'location': '113.680076,23.631502',\n",
       "    'distance': '386.65',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'BV11417822',\n",
       "    'direction': '东南',\n",
       "    'businessarea': [],\n",
       "    'address': '从15路从20路',\n",
       "    'poiweight': '0.400088',\n",
       "    'name': '南方学院后门总站(公交站)',\n",
       "    'location': '113.679280,23.627201',\n",
       "    'distance': '171.243',\n",
       "    'tel': [],\n",
       "    'type': '交通设施服务;公交车站;公交车站相关'},\n",
       "   {'id': 'B0FFK0MZII',\n",
       "    'direction': '东',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院后门润泰超市一楼',\n",
       "    'poiweight': '0.10175',\n",
       "    'name': '街电(尚千谷中大南方店)',\n",
       "    'location': '113.680254,23.627804',\n",
       "    'distance': '213.132',\n",
       "    'tel': [],\n",
       "    'type': '生活服务;共享设备;充电宝'},\n",
       "   {'id': 'B0HRV1D5FP',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院',\n",
       "    'poiweight': '0.191158',\n",
       "    'name': '广州南方学院博物馆',\n",
       "    'location': '113.679624,23.631631',\n",
       "    'distance': '380.463',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;博物馆;博物馆'},\n",
       "   {'id': 'B0FFKMSV6B',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.232574',\n",
       "    'name': '广州南方学院西学楼2号楼',\n",
       "    'location': '113.675891,23.630025',\n",
       "    'distance': '300.564',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFKP81F0',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '博学路与中山路交叉口南340米',\n",
       "    'poiweight': '0.191742',\n",
       "    'name': '教学楼1号(文学与传媒学院)',\n",
       "    'location': '113.676866,23.631736',\n",
       "    'distance': '393.93',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;科教文化场所;科教文化场所'},\n",
       "   {'id': 'B0HGDU99RM',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院内',\n",
       "    'poiweight': '0.257947',\n",
       "    'name': '广州南方学院图书馆',\n",
       "    'location': '113.679303,23.632322',\n",
       "    'distance': '444.196',\n",
       "    'tel': '020-61787368;020-61787371',\n",
       "    'type': '科教文化服务;图书馆;图书馆'},\n",
       "   {'id': 'B0HGDU92JD',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院1号教学楼',\n",
       "    'location': '113.676968,23.631720',\n",
       "    'distance': '388.57',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0FFH6K3U9',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇温泉大道882号广州南方学院H7栋1-5层',\n",
       "    'poiweight': '0.254885',\n",
       "    'name': '广州中大南方招待所',\n",
       "    'location': '113.676330,23.631332',\n",
       "    'distance': '378.102',\n",
       "    'tel': '020-61787222',\n",
       "    'type': '住宿服务;住宿服务相关;住宿服务相关'},\n",
       "   {'id': 'B0H1YMW8PH',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉镇中山大学南方学院博学路6号西区食堂首层',\n",
       "    'poiweight': '0.214311',\n",
       "    'name': '肯德基(从化南方学院店)',\n",
       "    'location': '113.676031,23.631594',\n",
       "    'distance': '419.018',\n",
       "    'tel': '4009200715',\n",
       "    'type': '餐饮服务;快餐厅;快餐厅'},\n",
       "   {'id': 'B0HGD592BJ',\n",
       "    'direction': '东北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.221662',\n",
       "    'name': '广州南方学院综合楼',\n",
       "    'location': '113.680109,23.631605',\n",
       "    'distance': '398.334',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'},\n",
       "   {'id': 'B0HGD58NF8',\n",
       "    'direction': '北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号广州南方学院新综合楼2层',\n",
       "    'poiweight': '0.191229',\n",
       "    'name': '广州南方学院达人书院',\n",
       "    'location': '113.679041,23.632392',\n",
       "    'distance': '446.366',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;学校;高等院校'},\n",
       "   {'id': 'B0JBGSFI8C',\n",
       "    'direction': '西北',\n",
       "    'businessarea': [],\n",
       "    'address': '温泉大道882号',\n",
       "    'poiweight': '0.115716',\n",
       "    'name': '广州南方学院西学楼1号楼',\n",
       "    'location': '113.675570,23.630596',\n",
       "    'distance': '365.742',\n",
       "    'tel': [],\n",
       "    'type': '地名地址信息;门牌信息;楼栋号'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 59,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "geo_nfu"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2270bbb2",
   "metadata": {},
   "source": [
    "1. keys有哪些？\n",
    "2. roads 有哪些？\n",
    "3. name 有哪些？\n",
    "4. direction 为 北的 name 有哪些？\n",
    "5. 有 tel 的 建筑（name）有哪些？\n",
    "6. type 为\"餐饮服务\"有哪些？\n",
    "7. distance 小于200米的建筑设施有哪些？"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a2258c74",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
